package com.dobbinsoft.iotechn.device.enums;

/**
 * @author : rize
 * @description : 消息处理后，返回消息处理结果类型
 * @time : 2020/6/17
 */
public enum IotMessageResultType {

    SUCCESS(0, "成功"),
    ERROR_EASY(1, "简单错误,不会将设备踢下线"),
    ERROR_FATAL(2, "致命错误,将客户端踢下线"),
    ;

    IotMessageResultType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
